"Editor" variables are stored within each dialog box.
The dialog boxes stack inside each other to control focus.
	(control is passed from parent to child, and then back)
	(There are no sibling dialog boxes. 
	 Everything is a linear hierarchy of parent-child)
While editing, variables are stored in an "output" object inside each dialog.
This object is returned when the dialog is concluded,
	and written to the "level" variables.
Interface variables are stored loose within each dialog box, outside of its "output" object.
The Map Editor does NOT have an "output" object and instead writes data directly to the "level" object.

In the editor:
	ALL this data is present.
	The "level" object takes exactly the same form as does in the game engine.
	(this could make test-runs possible from the editor!)
In the game engine:
	The "level" object is present.
	But the "editor" object is NOT present.

The "level" object takes EXACTLY the same form in both the editor and the game ending.
When saving, only the "level" data is stored.
	It is all stored in XML format.

For event commands (parallel_es), each one's variables are different depending on the type of command.
Look up the variables for each type of command in the "variables.txt" of each event command's folder. (all of them are stored inside the "Event Commands" folder)



* EDITOR DATA *
mapEditor_mc (movieClip)
	active (bool)
	chipSetPane (pane)
		chipSet (bitmap)
		chipTerrain (bitmap)
		chipCursor (movieClip)
	mapPane (pane)
		upperMap (bitmap)
		lowerMap (bitmap)
		mapTerrain (bitmap)
		eventIcons (bitmap)
		eventCursor (movieClip)
		dragIcon (movieClip)
	selectedTerrain (number)
	selectedTile (number)
	mapTileX (number)
	mapTileY (number)
	eventName (string)
	modeUpperLower (bool)	(true = upper,  false = lower)
	detectKeys (bool)

	eventEditor_mc (movieClip)
		setup_es (movieClip)
			es_moveEvent_mc (movieClip)
				output (object)
					targetEvent (string)
					motions_ms (object array)			
		parallel_es
			es_moveEvent_mc (movieClip)
				output (object)
					targetEvent (string)
					motions_ms (object array)
		talk_es
			es_moveEvent_mc (movieClip)
				output (object)
					targetEvent (string)
					motions_ms (object array)
		output (object)
			eventName (string)
			setup_es (object array)
				setup_es[0] (object)
				setup_es[1] (object)
			parallel_es (object array)
				parallel_es[0] (object)
				parallel_es[1] (object)
				parallel_es[2] (object)
			talk_es (object array)
				talk_es[0] (object)
				talk_es[1] (object)
				talk_es[2] (object)
				
				
* LEVEL DATA *
level (object)
	map (object)
		width (number)
		height (number)
		chipSet (string)
		upperMap (2d Array - number)
		lowerMap (2d Array - number)
		mapTerrain (2d Array - number)
		defaultTerrain (1d array - number)
		events (object array)
			event1 (object)
				eventName (string)
				xTile (number)
				yTile (number)
				setup_es (object array)
					setup_es[0] (object)
					setup_es[1] (object)
				parallel_es (object array)
					parallel_es[0] (object)
					parallel_es[1] (object)
					parallel_es[2] (object)
				talk_es (object array)
					talk_es[0] (object)
					talk_es[1] (object)
					talk_es[2] (object)
			event2 (object)
				eventName (string)
				xTile (number)
				yTile (number)
				setup_es (object array)
					setup_es[0] (object)
					setup_es[1] (object)
				parallel_es (object array)
					parallel_es[0] (object)
					parallel_es[1] (object)
					parallel_es[2] (object)
				talk_es (object array)
					talk_es[0] (object)
					talk_es[1] (object)
					talk_es[2] (object)
	storyVariables (object)
		myString (string)
		myVar2 (number)

* GAME ENGINE DATA *

